package com.cy.cuiyang_admin.chain.handler;


import com.cy.cuiyang_admin.chain.AttendHandlerChain;
import com.cy.cuiyang_admin.chain.annotation.AttendHandler;
import com.cy.cuiyang_admin.pojo.AttendRecordDto;
import com.cy.cuiyang_admin.pojo.AttendanceRecord;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 出差判断处理
 *
 * @author admin
 */
@AttendHandler(order = 2)
public class WorkOutDetectiveHandler implements AttendDetectiveHandler {
    private static final Logger LOGGER = LoggerFactory.getLogger(WorkOutDetectiveHandler.class);

    @Override
    public void handle(AttendHandlerChain chain, AttendRecordDto attendRecordDto, AttendanceRecord attendance) {

        LOGGER.info("WorkOutDetectiveHandler...is...start...{}", attendance.getfUserCode());

        chain.doHandler(attendRecordDto, attendance);
    }
}
